//
//  DataBaseHandle.h
//  FMDB
//
//  Created by 史兴宇 on 16/3/4.
//  Copyright © 2016年 史兴宇. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LiWu.h"
#import "gongLv.h"





@interface DataBaseHandle : NSObject


+ (instancetype)shareDataBase;
- (void)openDB;

- (void)closeDB;
- (void)createTable;
- (void)deleteTable;
- (void)insertDataWithLiWu:( LiWu *)liwu;
- (void)deleteDataWithLiWu:(LiWu *)liwu Name:(NSString *)name;
- (NSMutableArray *)selectTable;
- (NSMutableArray *)selectDataWithName:(NSString *)name;

- (void)createTableGongLv;
- (void)deleteTableGonglv;
- (void)insertDataWithGongLv:(gongLv *)gongLv;
- (void)deleteDataWithGongLV:(gongLv *)gonglv Name:(NSString *)name;
- (NSMutableArray *)selectTableGongLv;
- (NSMutableArray *)selectDataGongLvWithName:(NSString *)name;


@end
